package com.musiclibrary.services;

import java.util.List;

import com.musiclibrary.persistence.MusicCategory;
import com.musiclibrary.scraper.MusicScraper;

public class MusicScraperServiceImpl implements IMusicScraperService{

	private MusicScraper musicScraper;
	
	public MusicScraper getMusicScraper() {
		return musicScraper;
	}

	public void setMusicScraper(MusicScraper musicScraper) {
		this.musicScraper = musicScraper;
	}

	public List<MusicCategory> loadPage() {
		List<MusicCategory> musicCategories=null;
		try{
			musicCategories= getMusicScraper().loadPage();
		}catch(Exception e){
			e.printStackTrace();
		}
		return musicCategories;
	}

}
